package com.pinyoumei.app.bean;

import java.math.BigDecimal;
import java.util.List;

/**
 * Created by Administrator on 2021-06-26.
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2021-06-26        Administrator             新增Person类
 * 2021-06-26        Administrator             增加sex属性
 */
public class ExchangeFreeListBean {

    /**
     * code : 1
     * errors : {}
     * msg : 操作成功
     * result : {"exchange_coupon_list":[{"coupon_amount":5,"use_condition":"需订单金额大于100.0元","expire_time":"4个月","need_score":500,"id":"0ce38a1f2ba849fc9bfc9714f718c868","coupon_type":"境外商城优惠券"},{"coupon_amount":10,"use_condition":"需订单金额大于500.0元","expire_time":"3个月","need_score":600,"id":"c67320e2b2db4f36835c4c3d56286bd2","coupon_type":"机具商城优惠券"},{"coupon_amount":5,"use_condition":"需订单金额大于240.0元","expire_time":"3个月","need_score":300,"id":"cdac95139c2943d5a4c5ab14213ee640","coupon_type":"机具商城优惠券"},{"coupon_amount":10,"use_condition":"需订单金额大于300.0元","expire_time":"3个月","need_score":1000,"id":"e9e972c57a4d4f5f9667d0f3641338f0","coupon_type":"境外商城优惠券"}]}
     */

    private int code;
    private ErrorsBean errors;
    private String msg;
    private ResultBean result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public ErrorsBean getErrors() {
        return errors;
    }

    public void setErrors(ErrorsBean errors) {
        this.errors = errors;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ErrorsBean {
    }

    public static class ResultBean {
        private List<ExchangeCouponListBean> exchange_coupon_list;

        public List<ExchangeCouponListBean> getExchange_coupon_list() {
            return exchange_coupon_list;
        }

        public void setExchange_coupon_list(List<ExchangeCouponListBean> exchange_coupon_list) {
            this.exchange_coupon_list = exchange_coupon_list;
        }

        public static class ExchangeCouponListBean {
            /**
             * coupon_amount : 5
             * use_condition : 需订单金额大于100.0元
             * expire_time : 4个月
             * need_score : 500
             * id : 0ce38a1f2ba849fc9bfc9714f718c868
             * coupon_type : 境外商城优惠券
             */

            private BigDecimal coupon_amount;
            private String use_condition;
            private String expire_time;
            private int need_score;
            private String id;
            private String coupon_type;

            public BigDecimal getCoupon_amount() {
                return coupon_amount;
            }

            public void setCoupon_amount(BigDecimal coupon_amount) {
                this.coupon_amount = coupon_amount;
            }

            public String getUse_condition() {
                return use_condition;
            }

            public void setUse_condition(String use_condition) {
                this.use_condition = use_condition;
            }

            public String getExpire_time() {
                return expire_time;
            }

            public void setExpire_time(String expire_time) {
                this.expire_time = expire_time;
            }

            public int getNeed_score() {
                return need_score;
            }

            public void setNeed_score(int need_score) {
                this.need_score = need_score;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCoupon_type() {
                return coupon_type;
            }

            public void setCoupon_type(String coupon_type) {
                this.coupon_type = coupon_type;
            }
        }
    }
}
